import {
	request
} from '@/utils/request.js';

// 获取设备下拨数据面板数据
export function getDeviceAllocationDataCenterData(data) {
	return request({
		url: '/system/direct/allocate/record/analy',
		method: 'get',
		data
	})
}

// 获取巡检员列表
export function getInspectorList(data) {
	return request({
		url: '/system/direct/user/getInspectorList',
		method: 'get',
		data
	})
}

// 获取下拨设备列表
export function getDeviceAllocationList(data) {
	return request({
		url: '/sw/system/rentBox/direct/listAllocate',
		method: 'get',
		data
	})
}

// 确认下拨
export function confirmAllocation(data) {
	return request({
		url: '/system/direct/user/allocate',
		method: 'post',
		data
	})
}

// 获取下拨记录列表
export function getAllocationRecordList(data) {
	return request({
		url: '/system/direct/allocate/record/list',
		method: 'get',
		data
	})
}

// 获取下拨记录详情
export function getAllocationRecordDetail(data) {
	return request({
		url: '/system/direct/allocate/record/detail',
		method: 'get',
		data
	})
}